package cn.lsc.enums;

import lombok.Data;


public enum GlobaEnums {

    //成功
    OK("成功了！","10001"),
    //失败
    Error("失败了！！","10002"),
    //参数不能为空

    //common服务得错误码
    PARAM_IS_NULL_ERROR("参数不能为空","10003"),
    CODE_IS_ERROR("图形验证码输入错误","50001"),
    PHONE_IS_NULL_ERROR("手机号不能为空","50002"),
    PHONE_FORMAT_ERROR("手机格式不正确","50003"),
    INTERVAL_ERROR("一分中内请勿多次发送","50004"),
    ID_ISNULL_ERROR("id不能为空！","50005"),
    IP_ISNULL_ERROR("id不能为空！","50005"),
    CODE_ONEPIES_ERROR("一个邀请码只能使用一次哦，亲！","50006"),


    //user服务得错误码
    CODE_OUTTIME_ERROR("手机验证码已过期","30001"),
    CODE_NOTOK_ERROR("手机验证码错误","30002"),
    PHONE_ISNULL_ERROR("手机号已经被注册","30003"),
    USER_REGISTER_ERROR("用户注册失败","30004"),
    USER_BACKLIST_ERROR("您已被纳入黑名单，暂时无法注册，如需注册请充值100w解锁注册资格","30005"),


    COURSE_EXISTED_ERROR("课程下架", "40001"),
    COURSE_ISEXISTENCE_ERROR("课程不存在","40002" ),
    COURSE_ISSATE_ERROR("课程状态有问题","40003" ),
    COURSE_ON_ERROR("课程上级失败","40004"),
    COURSE_OFF_ERROR("当前课程不是上架状态","40005"),
    COURSE_NOTFINDMEDIA_ERROR("查询媒体信息失败咯~","40006"),
    COURSE_MEDIAISNOTNULL_ERROR("媒体信息不存在~","40007"),
    COURSE_NOBUYCOURSE_ERROR("请购买后观看~","40008"),
    COURSE_OUTTIME_ERROR("该课程以过期~","40008")

    ;

    private String errorMessager;
    private String errorCode;

    GlobaEnums(String errorMessager, String errorCode) {
        this.errorMessager = errorMessager;
        this.errorCode = errorCode;
    }

    public String getErrorMessager() {
        return errorMessager;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
